﻿using UnityEngine;
using System.Collections;

public class CameraZoomScript : MonoBehaviour {

		


	void Update () {

		if (ShipModuleData.radarON == false)
		{
			Camera.main.orthographicSize = 10;
		}
		if (ShipModuleData.radarON == true)
		{
			Camera.main.orthographicSize = 10 + (2 * ShipModuleData.radarLv);
		}
		

		// if (Input.GetMouseButton(0) && Camera.main.orthographicSize <= 60)
		// var verticalSize   = Camera.main.orthographicSize;
		// var horizontalSize = verticalSize * Screen.width / Screen.height;

	}
}
